﻿using GYCTOAManagementSystemNewApi.Model.Tool;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace GYCTOAManagementSystemNewApi.Model
{

    /// <summary>
    /// 员工表
    /// </summary>
    [Description("用户表")]
    public class Users : Operate
    {
        /// <summary>
        /// 员工职务
        /// </summary>
        //[Description("员工职位")]
        //public string UserPosition { get; set; }

        /// <summary>
        /// 员工角色
        /// </summary>
        [Description("员工角色编号")]
        public string RoleId { get; set; }
             
        /// <summary>
        /// 员工姓名
        /// </summary>
        [Description("员工姓名")]
        public string UserName { get; set; }
        /// <summary>
        /// 员工电话
        /// </summary>
        [Description("员工电话")]
        public string Phone { get; set; }
        /// <summary>
        /// 性别，0代表男性，1代表女性
        /// </summary>
        [Description("员工性别")]
        public int Sex { get; set; }
        /// <summary>
        /// 部门标识
        /// </summary>
        //[Description("部门标识")]
        //public int DepartmentId { get; set; }

        /// <summary>
        /// 离职时间
        /// </summary>
        [DataType(DataType.Date)]
        [Description("离职时间")]
        public DateTime? DepartureTime { get; set; }
        /// <summary>
        /// 入职时间
        /// </summary>
        [DataType(DataType.Date)]
        [Description("入职时间")]
        public DateTime InductionTime { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [Description("身份证号")]
        public string Card { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        //[DataType(DataType.Date)]
        //[Description("出生日期")]
        //public DateTime? Birth { get; set; }
        /// <summary>
        /// 在职状态 0 实习期  1  正式期 2 已离职   其他   未选择
        /// </summary>
        [Description("在职状态")]
        public int? InternshipState { get; set; }
        /// <summary>
        /// 家庭地址
        /// </summary>
        [Description("家庭地址")]
        public string FamilyAddress { get; set; }
        /// <summary>
        /// 现居地
        /// </summary>
        [Description("现居地")]
        public string NowFamilyAddress { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        //[Description("邮箱")]
        //public string Email { get; set; }
        [Description("备注")]
        public string Remark { get; set; }

        /// <summary>
        /// 员工账号密码
        /// </summary>
        [Description("账号密码")]
        public string Password { get; set; }

        /// <summary>
        /// 员工工号、工种
        /// </summary>
        [Description("员工工种")]
        public string JobNumber { get; set; }
        /// <summary>
        /// 员工工号
        /// </summary>
        [Description("员工工号")]
        public string UserNumber { get; set; } = "";
        /// <summary>
        /// 拼音
        /// </summary>
        //public int Dutyid { get; set; }
        [Description("拼音")]
        public string Pinyin { get; set; }

        /*-----------------------------------------------------------------------------
            修改时间: 2019年8月13日15:13:13
            修改人:   YZM
        -----------------------------------------------------------------------------*/


        /*职务Id
          操作人Id
          转正日期
          劳动合同期限
          薪资标准
          银行卡号   
          开户行 
          个人履历  
          技能证件*/
        ///// <summary>
        ///// 职务Id
        ///// </summary>
        //public int DutymainsId { get; set; }
        ///// <summary>
        ///// 操作人Id
        ///// </summary>
        //[Description("操作人Id")]
        //public int OperatorId { get; set; }
        /// <summary>
        /// 转正日期
        /// </summary>
        //[DataType(DataType.Date)]
        //[Description("转正日期")]
        //public DateTime? RegularDate { get; set; }
        /// <summary>
        /// 劳动合同期限
        /// </summary>
        //[Description("劳动合同期限开始")]
        //public DateTime? LabourDeadlineStart { get; set; }

        /// <summary>
        /// 劳动合同期限
        /// </summary>
        //[Description("劳动合同期限结束")]
        //public DateTime? LabourDeadlineEnd { get; set; }
        /// <summary>
        /// 薪资标准
        /// </summary>
        //[Description("薪资标准")]
        //public int SalaryStandard { get; set; }
        /// <summary>
        ///   银行卡号
        /// </summary>
        [Description("银行卡号")]
        public string BankCardNumber { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [Description("开户行")]
        public string BankName { get; set; }

         
        /// <summary>
        ///   银行卡号
        /// </summary>
        [Description("银行卡号2")]
        public string? BankCardNumber2 { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [Description("开户行2")]
        public string? BankName2 { get; set; }

         
        /// <summary>
        /// 个人履历
        /// </summary>
        //[Description("个人履历")]
        //public string PersonalResume { get; set; }
        /// <summary>
        /// 技能证件
        /// </summary>
        //[Description("技能证件")]
        //public string SkillsCertificate { get; set; }



        /*
         时间:   2020年4月24日14:24:04
         修改人: YZM
         修改内容:   
             学历     Education { get; set; }
             毕业学校 GraduateSchool { get; set; }
         */

        /// <summary>
        /// 学历
        /// </summary>
        //public string Education { get; set; }

        /// <summary>
        /// 毕业学校
        /// </summary>
        //public string GraduateSchool { get; set; }



        /*
          /// 修改时间:  2020年4月27日14:25:43
        /// 修改人:    YZM
        /// 修改内容:  
        ///     角色职责         RoleDuty 
        ///     修改时间          OperatDate
             */
        /// <summary>
        /// 角色职责
        /// </summary>
        //public string RoleDuty { get; set; }
        /// <summary>
        /// 钉钉ID
        /// 修改时间:  2020年6月3日14:35:43
        /// 修改人:   SGS
        /// </summary>
        //public string DD_number { get; set; }
        /// <summary>
        /// 岗位
        /// </summary>
        //public string Post { get; set; }
        /// <summary>
        /// 岗位等级
        /// </summary>
       // public string PostLevel { get; set; }
        /// <summary>
        /// 个人简介
        /// </summary>
       // public string PersonalProfile { get; set; }

        #region 20210510增加财务期初余额属性
        /// <summary>
        /// OA财务模块使用之前，个人的借款余额
        /// </summary>
        //public decimal OpenBalance { get; set; }
        #endregion
    }
}